import BaseView from "./BaseView";


export default class BaseItemView extends BaseView {

    protected index: number = 0;


    setIndex(i: number) {
        this.index = i;
    }

    getIndex() {
        return this.index;
    }
    start() {
        super.start()
        if (this.model) {
            this.refresh()
        }

    }

    refresh() {

    }


    getBoundingBoxToWorld() {
        return this.node.getBoundingBoxToWorld()
    }

    set x(x: number) {
        this.node.x = x;
    }

    set y(y: number) {
        this.node.y = y;
    }

    get x() {
        return this.node.x;
    }

    get y() {
        return this.node.y;
    }


    getPosition() {
        return this.node.getPosition();
    }
}
